Fix an memory overrun
authorMatthias Clasen <mclasen@redhat.com>
Fri, 26 Feb 2016 18:08:45 +0000 (13:08 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 26 Feb 2016 20:52:19 +0000 (15:52 -0500)
This was detected by gccs address sanitizer.

gdk/wayland/gdkdisplay-wayland.c

index fb9f26f00bea0d689b51e0d9cd3bee0580ea462e..7093a15576f0ff89b8cb031238f580e967e1eaec 100644 (file)
@@ -392,6 +392,7 @@ _gdk_wayland_display_prepare_cursor_themes (GdkWaylandDisplay *display_wayland)
   OnHasGlobalsClosure *closure;
   static const char *required_cursor_theme_globals[] = {
       "wl_shm",
+      NULL
   };
 
   closure = g_new0 (OnHasGlobalsClosure, 1);